<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h3 align="center">简易计算器</h3>
	
	<s:form name="frm" action="math">
		第一个参数:<s:textfield name="paramA" label="第一个参数"></s:textfield><br>
		第二个参数:<s:textfield name="paramB" label="第二个参数"></s:textfield><br>
		<s:submit method="add" value="+"></s:submit>
		<s:submit method="subtraction" value="-"></s:submit>
		<s:submit method="multiplication" value="*"></s:submit>
		<s:submit method="div" value="/"></s:submit><br>
	</s:form>
	结果：<input type="text" value="${requestScope.result}">
</body>
</html>